package org.bioversityinternational.mgbms.model.dao;

import org.apache.log4j.Logger;
import org.bioversityinternational.mgbms.model.dao.base.BaseDao;
import org.bioversityinternational.mgbms.model.domain.MaterialType;
import org.springframework.stereotype.Component;

@Component
public class MaterialTypeDao extends BaseDao<MaterialType, Integer>
{
	private static final Logger LOG = Logger.getLogger(MaterialTypeDao.class);
	
	public MaterialTypeDao() {
		super(MaterialType.class);		
        LOG.debug("MaterialTypeDao constructed");
	}

	@Override
	public Integer getIdFromString(String sIdAsString) {
		return Integer.parseInt(sIdAsString);
	}
			
}

